define(function(){
    return function (res, local, cont){
        let str = ""
        for(let i=0;i<res.length;i++){
            for(let j=0;j<local.length;j++){
                if(res[i].proId === local[j].id){
                    console.log(res[i].price)
                    console.log(local[j].num)
                    str += `<tr index="${res[i].proId}">
                            <td align="center"><input class="check" type="checkbox" ${local[j].flag===0 ? '' : 'checked'}></td>
                            <td><img src="${res[i].url[0].src}" alt=""></td>
                            <td>${res[i].name}</td>
                            <td><input type="number" class="setNum" value="${local[j].num}"></td>
                            <td>${res[i].price}</td>
                            <td class="little">${res[i].price * local[j].num}</td>
                            <td class="del">删除</td>
                        </tr>`
                }
            }
        }
        cont.html(str);
    }
})